﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A8F RID: 2703
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LobbyQuitScRsp : IMessage<LobbyQuitScRsp>, IMessage, IEquatable<LobbyQuitScRsp>, IDeepCloneable<LobbyQuitScRsp>, IBufferMessage
	{
		// Token: 0x17002218 RID: 8728
		// (get) Token: 0x060078DE RID: 30942 RVA: 0x00142B74 File Offset: 0x00140D74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LobbyQuitScRsp> Parser
		{
			get
			{
				return LobbyQuitScRsp._parser;
			}
		}

		// Token: 0x17002219 RID: 8729
		// (get) Token: 0x060078DF RID: 30943 RVA: 0x00142B7B File Offset: 0x00140D7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LobbyQuitScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700221A RID: 8730
		// (get) Token: 0x060078E0 RID: 30944 RVA: 0x00142B8D File Offset: 0x00140D8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LobbyQuitScRsp.Descriptor;
			}
		}

		// Token: 0x060078E1 RID: 30945 RVA: 0x00142B94 File Offset: 0x00140D94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyQuitScRsp()
		{
		}

		// Token: 0x060078E2 RID: 30946 RVA: 0x00142B9C File Offset: 0x00140D9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyQuitScRsp(LobbyQuitScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060078E3 RID: 30947 RVA: 0x00142BC1 File Offset: 0x00140DC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyQuitScRsp Clone()
		{
			return new LobbyQuitScRsp(this);
		}

		// Token: 0x1700221B RID: 8731
		// (get) Token: 0x060078E4 RID: 30948 RVA: 0x00142BC9 File Offset: 0x00140DC9
		// (set) Token: 0x060078E5 RID: 30949 RVA: 0x00142BD1 File Offset: 0x00140DD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060078E6 RID: 30950 RVA: 0x00142BDA File Offset: 0x00140DDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LobbyQuitScRsp);
		}

		// Token: 0x060078E7 RID: 30951 RVA: 0x00142BE8 File Offset: 0x00140DE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LobbyQuitScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060078E8 RID: 30952 RVA: 0x00142C18 File Offset: 0x00140E18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060078E9 RID: 30953 RVA: 0x00142C57 File Offset: 0x00140E57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060078EA RID: 30954 RVA: 0x00142C5F File Offset: 0x00140E5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060078EB RID: 30955 RVA: 0x00142C68 File Offset: 0x00140E68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060078EC RID: 30956 RVA: 0x00142C9C File Offset: 0x00140E9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060078ED RID: 30957 RVA: 0x00142CDA File Offset: 0x00140EDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LobbyQuitScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060078EE RID: 30958 RVA: 0x00142D0B File Offset: 0x00140F0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060078EF RID: 30959 RVA: 0x00142D14 File Offset: 0x00140F14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002E44 RID: 11844
		private static readonly MessageParser<LobbyQuitScRsp> _parser = new MessageParser<LobbyQuitScRsp>(() => new LobbyQuitScRsp());

		// Token: 0x04002E45 RID: 11845
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002E46 RID: 11846
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04002E47 RID: 11847
		private uint retcode_;
	}
}
